<template>
    <div>
        <button @click="back">后退</button>
        <button @click="forward">前进</button>
        <button @click="go">测试go</button>
    </div>
</template>

<script>
export default {
    name: "Banner",
    methods: {
        back() {
            this.$router.back();
        },
        forward() {
            this.$router.forward();
        },
        go() {
            this.$router.go(2);
        },
    },
};
</script>

<style>
</style>